//
//  SLProjectDetailHeadView.swift
//  sulit-loan
//
//  Created by 王刚锋 on 2025/4/19.
//  Copyright © 2025 coolBoy. All rights reserved.
//

import UIKit
import SwiftyJSON

class SLProjectDetailHeadView: UIView {

    @IBOutlet weak var logo: UIImageView!
    @IBOutlet weak var darius: UILabel!
    
    @IBOutlet weak var name: UILabel!
    @IBOutlet weak var limited: UILabel!
    
    @IBOutlet weak var unit: UILabel!
    @IBOutlet weak var leftTop: UILabel!
    @IBOutlet weak var leftBottom: UILabel!
    @IBOutlet weak var rightTop: UILabel!
    @IBOutlet weak var rightBottom: UILabel!
    func setModel(model:JSON){

        self.logo.setUrlImage(url:model["commented"].stringValue)
        self.darius.text = model["darius"].stringValue
        self.unit.text = model["palmette"].stringValue
        self.limited.text = model["limited"].stringValue
        self.name.text = model["singularly"].stringValue
        let pailou = model["pailou"]
        self.leftTop.text = pailou["image"]["taegeuk"].stringValue
        self.leftBottom.text = pailou["image"]["himalayas"].stringValue
        self.rightTop.text = pailou["trisula"]["taegeuk"].stringValue
        self.rightBottom.text = pailou["trisula"]["himalayas"].stringValue
    }
}
